<?php
	define("AT_EXE",1);
	if(!defined("DS"))define("DS","/");
	if(!defined("SERVER"))define("SERVER",(isset($_SERVER["REQUEST_SCHEME"])?$_SERVER["REQUEST_SCHEME"]:"http")."://".$_SERVER["HTTP_HOST"]);
	if(!defined("REAL_PATH"))define("REAL_PATH",dirname(__FILE__).DS);
	if(!defined("ROOT"))define("ROOT",str_replace(array("index.php"),"",$_SERVER["SCRIPT_NAME"]));
	if(!defined("CORE"))define("CORE","core".DS."at".DS);
	if(!defined("CORE_APP"))define("CORE_APP",CORE."app".DS);
	if(!defined("CORE_HTML"))define("CORE_HTML",CORE."html".DS);
	if(!defined("CORE_PERFORM"))define("CORE_PERFORM",CORE."perform".DS);
	if(!defined("CORE_UTIL"))define("CORE_UTIL",CORE."util".DS);
	if(!defined("APP_CONTROLLER"))define("APP_CONTROLLER","app".DS."controllers".DS);
	if(!defined("APP_MODEL"))define("APP_MODEL","app".DS."models".DS);
	if(!defined("APP_VIEW"))define("APP_VIEW","app".DS."views".DS);
	if(!defined("APP_LIBS"))define("APP_LIBS","app".DS."libs".DS);
	if(!defined("APP_CONFIG"))define("APP_CONFIG","app".DS."config".DS);
	if(!defined("DBXML"))define("DBXML","data".DS."dbxml".DS);
	if(!defined("WEB"))define("WEB",SERVER.ROOT."web/");
	if(!defined("CSS"))define("CSS",WEB."css/");
	if(!defined("JS"))define("JS",WEB."js/");
	if(!defined("IMG"))define("IMG",WEB."img/");	
	require_once(CORE."wakeup.php");
	$route->spread();
?>
